package com.quick.im.client.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.quick.im.common.entity.domian.MessageRecordOffline;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xhh
 * @since 2024-12-19
 */
@Mapper
public interface MessageRecordOfflineMapper extends BaseMapper<MessageRecordOffline> {


    @Select("select * from message_record_offline ${ew.customSqlSegment}")
    List< MessageRecordOffline> listMessageRecordOffline (@Param(Constants.WRAPPER) QueryWrapper<MessageRecordOffline> queryWrapper);


    @Select("select * from message_record_offline where id = #{id} ")
    MessageRecordOffline getMessageRecordOfflineById(Integer id);
}

